Module for defining constants used in NAFPack
This module includes mathematical constants, colors for terminal output, and other parameters that are used throughout the NAFPack library.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=dp), | public, | parameter | :: | pi | = | ACOS(-1.d0) |
constant |
complex(kind=dp), | public, | parameter | :: | im | = | (0.d0, 1.d0) |
Imaginary unit |
real(kind=dp), | public, | parameter | :: | epsi | = | 1.d-12 |
Small value |
real(kind=dp), | public, | parameter | :: | epsi_test | = | 1.d-6 |
Small value |
integer, | public, | parameter | :: | kmax | = | 10000 |
Maximum number of iterations for iterative methods |
character(len=*), | public, | parameter | :: | status_len | = | REPEAT(" ", 15) |
len of status messages |
character(len=10), | public | :: | red_color | = | CHAR(27)//"[31m" |
red colors for terminal output |
|
character(len=10), | public | :: | green_color | = | CHAR(27)//"[32m" |
green colors for terminal output |
|
character(len=10), | public | :: | yellow_color | = | CHAR(27)//"[33m" |
yellow colors for terminal output |
|
character(len=10), | public | :: | blue_color | = | CHAR(27)//"[34m" |
blue colors for terminal output |
|
character(len=10), | public | :: | purple_color | = | CHAR(27)//"[35m" |
purple colors for terminal output |
|
character(len=10), | public | :: | cyan_color | = | CHAR(27)//"[36m" |
cyan colors for terminal output |
|
character(len=10), | public | :: | white_color | = | CHAR(27)//"[37m" |
white colors for terminal output |
|
character(len=10), | public | :: | reset_color | = | CHAR(27)//"[0m" |
reset colors for terminal output |
|
integer, | public, | parameter | :: | NAF_SUCCESS | = | 0 |
Error codes for better error handling |
integer, | public, | parameter | :: | NAF_ERROR_DIMENSION | = | 1 | |
integer, | public, | parameter | :: | NAF_ERROR_SINGULAR | = | 2 | |
integer, | public, | parameter | :: | NAF_ERROR_CONVERGENCE | = | 3 | |
integer, | public, | parameter | :: | NAF_ERROR_MEMORY | = | 4 | |
integer, | public, | parameter | :: | NAF_ERROR_INVALID_METHOD | = | 5 | |
real(kind=dp), | public, | parameter | :: | TOL_PIVOT | = | 1.0e-14_dp |
Improved tolerance parameters |
real(kind=dp), | public, | parameter | :: | TOL_CONVERGENCE | = | 1.0e-12_dp |